package example.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import example.demo.mybatisplugin.RouteBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("tb_emp")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {
    @TableId
    public Long id;
    @TableField("email")
    public String email;
    @TableField("phone")
    public String phone;
    @TableField("age")
    public Integer age;
    @TableField("name")
    public String name;
    @TableField(exist = false)
    public RouteBean routeBean;
}
